-----------------------------------------------------------------------------------------
-- filename : fontfactory.lua
-- description : script to load font and use it on another script
-----------------------------------------------------------------------------------------

-- local variables
local fontfactory = {}
fontfactory.dimitry = "Dimitri"
fontfactory.helveticaBQ = nil

local function init() 
	print("Init Font factory")
	if "Win" == system.getInfo( "platformName" ) then -- for windows platform
	    fontfactory.dimitry = "Dimitri"
	    fontfactory.helveticaBQ = "Helvetica BQ"
	elseif "Android" == system.getInfo( "platformName" ) then -- for Android
	    fontfactory.dimitry = "assets/font/DIMITRI"
	    fontfactory.helveticaBQ = "assets/font/HelveticaBQ-Roman"
	else
	    -- Mac and iOS
	    fontfactory.dimitry = "Dimitri"
	    fontfactory.helveticaBQ = "Helvetica BQ"
	end
end

init()

return fontfactory